package www.hz.test.domain;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import www.hz.domain.strategy.service.armory.IStrategyArmory;
import www.hz.domain.strategy.service.armory.IStrategyDispatch;

import javax.annotation.Resource;
import javax.swing.*;

/**
 * @className: StrategyArmoryTest
 * @Description: TODO
 * @version: v1.８.0
 * @author: hz
 * @date: 2025/2/6 21:51
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest
public class StrategyArmoryTest {
    @Resource
    private IStrategyArmory strategyArmory;
    @Resource
    IStrategyDispatch strategyArmory1;
    @Test
    public void test_strategyArmory(){
        strategyArmory.assembleLotteryStrategy(100001L);
    }
    @Test
    public void test_getAssembleRandomVal(){
        log.info("{}",strategyArmory1.getRandomAwardId(100001L,"4000:102,103,104,105"));
        log.info("{}",strategyArmory1.getRandomAwardId(100001L,"5000:102,103,104,105,106,107"));
        log.info("{}",strategyArmory1.getRandomAwardId(100001L,"6000:102,103,104,105,106,107,108,109"));



    }
}
